import React, { Component } from 'react'
import Searchinput from '../../../components/searchinput/searchinput';
import './searchhead.less'
export default class Searchhead extends Component {
    goback1=()=>{
        this.props.history.goBack();
        console.log(this.props.history)
        //返回方法：
        // 1.引入withroute组件
        // 2.携带参数
        // 3.高阶组件
    }
    render() {
        return (
            
            <div className='search-head'>
                    <i 
                        className='small iconfont icon-fanhui'
                        onClick={this.goback1}
                    ></i>
                    <Searchinput/>
            </div>
        )
    }
}

